#pragma once

#include "qstring.h"


namespace micro
{
namespace utils
{

class QBase64
{
public:
    QBase64( void );
    ~QBase64( void );

    char * encode( const unsigned char * data, unsigned int len );
    int encode( const unsigned char * bytes, unsigned int size, QString & string );
    int decode( const char * data, unsigned int len, unsigned char *& outBytes, unsigned int & outLen );


};


}
}